﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using URLPOC.Models;

namespace URLPOC.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {

            List<UserViewModel> uVM = new List<UserViewModel>();
            uVM.Add(new UserViewModel() { UserID = 1, locID = 1, location = "India", UserName = "Vishnu" });
            uVM.Add(new UserViewModel() { UserID = 2, locID = 2, location = "India1", UserName = "Vishnu" });
            uVM.Add(new UserViewModel() { UserID = 3, locID = 3, location = "India3", UserName = "Vishnu3" });
            return View("Index", uVM);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
